import Vue from 'vue';
import App from './App.vue';
import router from './router';
import store from './store/store';
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from './utils/http';
import AMap from 'vue-amap';
import echarts from 'echarts'
import VueClipboard from 'vue-clipboard2'
Vue.use(VueClipboard)
Vue.prototype.$echarts = echarts
Vue.use(AMap)
Vue.use(ElementUI);
AMap.initAMapApiLoader({
  key: 'a32b106544f3de428245a79c9210dc4f',
  plugin: ['AMap.Scale', 'AMap.OverView', 'AMap.ToolBar', 'AMap.MapType', 'AMap.PlaceSearch', 'AMap.Geolocation', 'AMap.Geocoder'],
  v: '1.4.4',
  uiVersion: '1.0',
})
Vue.config.productionTip = false;
Vue.prototype.$axios = axios;
axios.defaults.baseURL = process.env.VUE_APP_URL;
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app');
